package com.lyh.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;

/**
 * 用户角色对象 lyh_member_role
 * 
 * @author ruoyi
 * @date 2023-04-27
 */
public class MemberRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 会员id */
    @Excel(name = "会员id")
    private Long roleId;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lossTime;

    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setLossTime(Date lossTime) 
    {
        this.lossTime = lossTime;
    }

    public Date getLossTime() 
    {
        return lossTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("roleId", getRoleId())
            .append("lossTime", getLossTime())
            .toString();
    }
}
